<template>

    <div>抓取魔兽物品信息</div>

    <a @click="zhuaqu">点击</a>
</template>

<script lang="ts" setup>

import { ref } from 'vue'
import axios from 'axios'

const zhuaqu = () => {

    console.log('抓取');
    // let url = process.env.VUE_APP_URL + '/api/login';
    let url = window.VITE_URL + '/wow.Crawler/getItems';
    let data = {
       
    };
    // console.log(url,data)
    axios.post( url, data ).then( res => {

        console.log( res );
        zhuaqu(); //重复调用
        

    });
}
    

</script>